// 导入type
import { USER_INFO_SET } from '../actionTypes'
export function userinfo(state = {}, action) {
  switch (action.type) {
    // 设置用户信息
    case USER_INFO_SET:
      return action.payload

    default:
      return state
  }
}
